package com.atguigu.gmall.all.controller.api;

import org.bouncycastle.math.raw.Mod;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author wk
 * @create 2021-09-06 19:12
 * 请登录
 */
@Controller
@RequestMapping
public class LoginController {
    // http://passport.gmall.com/login.html?originUrl=
    @GetMapping("/login.html")
    public String login(String originUrl, Model model) {
        model.addAttribute("originUrl", originUrl);
        return "login";
    }
}
